package 作业.Var1029.Test6;

public class Computers {
    CPU cpu;
    EMS ems;
    HardDisk hardDisk;
    USB usb;

    public Computers(CPU cpu, EMS ems, HardDisk hardDisk, USB usb) {
        this.cpu = cpu;
        this.ems = ems;
        this.hardDisk = hardDisk;
        this.usb = usb;
    }

    public void show() {
        System.out.println("我的电脑配置如下:");
        System.out.println("我的电脑品牌是:" + cpu.getname() + ",CPU的品牌是:" + cpu.getCPUBrand() + ",显卡是:" + cpu.getGraphicscard());
        System.out.println("硬盘品牌是:" + ems.getEMSType() + ",容量是：" + hardDisk.getCapacity() + "T");
        System.out.println("内存容量是:" + ems.setSize() + "G");
        System.out.println("我的电脑的鼠标是:"+usb.getshubiao()+",我的电脑的键盘是:"+usb.getjianpan());
    }
}
